<!DOCTYPE html>
<html lang="en">
	<head>
		{% block head %}
		<meta charset="utf-8">
		<meta name="viewport" content="width=device.width,initial-scale=1.0">
		<title>{{ user.name }}'s Watchlist</title>
		<link rel='icon' href="{{ url_for('static',filename='favicon.jpg') }}">
		<link rel='stylesheet' href="{{ url_for('static',filename='style.css') }}" type="text/css">
		{% endblock %}
	</head>

<body>
	{% for message in get_flashed_messages() %}
		<div class="alert">{{ message }}</div>
	{% endfor %}
	<h2>{{ user.name }}'s Watchlist</h2>
	<nav>
		<ul>
			<li><a href="{{ url_for('index') }}">Home</a></li>
			{% if current_user.is_authenticated %}
			<li><a href="{{ url_for('settings') }}">Settings</a></li>
			<li><a href="{{ url_for('logout') }}">Logout</a></li>
			{% else %}
			<li><a href="{{ url_for('login') }}">Login</a></li>
			{% endif %}
		</ul>
	</nav>
	{% block content%}{% endblock %}
	<footer>
		<samll>&copy;2021</samll>
	</footer>
</body>

</html>
